home *** CD-ROM | disk | FTP | other *** search
/ Internet Info 1994 March / Internet Info CD-ROM (Walnut Creek) (March 1994).iso / answers / comp / 3b2-faq / part1 < prev    next >
Text File  |  1994-02-23  |  69KB  |  1,895 lines

  1. Newsgroups: comp.sys.att,news.answers,comp.answers
  2. Path: bloom-beacon.mit.edu!nic.hookup.net!usc!cs.utexas.edu!uunet!amiserv!vpnet!gagme!greg
  3. From: greg@gagme.wwa.com (Gregory Gulik)
  4. Subject: AT&T 3B2 Frequently Asked Questions - Part 1/2
  5. Followup-To: comp.sys.att
  6. Approved: news-answers-request@MIT.Edu
  7. Organization: GAGME Public Access UNIX, Chicago, Illinois, USA
  8. Date: Sun, 20 Feb 1994 23:24:58 GMT
  9. Supersedes: <3B201-faq_940126163207@gagme.wwa.com>
  10. Message-ID: <3B201-faq_940220172452@gagme.wwa.com>
  11. Lines: 1881
  12. Xref: bloom-beacon.mit.edu comp.sys.att:2667 news.answers:15497 comp.answers:3861
  13.  
  14. Archive-name: 3b2-faq/part1
  15.  
  16.               AT&T 3B2 FREQUENTLY ASKED QUESTIONS
  17.  
  18. This article contains the answers to many Frequently Asked Questions
  19. (FAQ) often posed to the net. It is posted because the same questions
  20. pop up time after time. This will hopefully help out by not having
  21. these questions posted over and over, and help new users know what
  22. questions there are to ask in the first place! 8^)
  23.  
  24. This article includes answers to the following questions.  Much of the
  25. information included in this article is also compatible with the 3B15
  26. series of WE32000 series based computers.
  27.  
  28. First, the questions:
  29.  
  30. Subject:  0 SPECIAL NOTE
  31. Subject:  1 How do I install a second ST-506 drive on my 3B2?
  32. Subject:  2 How do I create a second swap partition?
  33. Subject:  3 How can I get X11 for the 3B2?
  34. Subject:  4 How do I install a non AT&T SCSI drive on my 3B2?
  35. Subject:  5 How do I prevent data overrun errors when using a high
  36.             speed modem on an EPORTS card at 19.2K baud or higher?
  37. Subject:  6 What does the 'NOTICE: File Table Overflow' error mean?
  38. Subject:  7 How do I set up anonymous ftp?
  39. Subject:  8 Is there a reposity of ftp-able 3B2 programs?
  40. Subject:  9 How do I run Unix from floppy (for example, to repair a damage
  41.             hard drive file system)?
  42. Subject: 10 What is/was the 3B Journal?
  43. Subject: 11 What are the various models of 3B2s and their differences?
  44. Subject: 12 How do I build GCC on the 3B2?
  45. Subject: 13 What is the NVRAM SANITY FAILURE?
  46. Subject: 14 Is there an implementation of SLIP for the 3B2?
  47. Subject: 15 What are the known bugs in the Wollongong WIN TCP software?
  48. Subject: 16 Is there an implementation of NFS for the 3B2?
  49. Subject: 17 What are the pinouts of those phone-like serial connectors?
  50. Subject: 18 What is the u3b. newsgroup hierarchy?
  51. Subject: 19 What is the proper way to rebuild the kernel after tuning
  52.         kernel parameters?
  53. Subject: 20 Which GNU packages DON'T run on the 3B2?
  54. Subject: 21 How do I put a root and/or swap partition on a SCSI drive
  55.         on a 3B2/300|310|400?
  56. Subject: 22 How do I take a crash dump?
  57. Subject: 23 Why do I get "Host is unreachable" when trying to connect
  58.         to a host on the Internet?
  59. Subject: 24 How do I boost the speed of my 3B2/310 or /400?
  60.  
  61. Now, the answers:
  62.  
  63.  
  64. ------------------------------------------------------------------------------
  65. Subject:  0 SPECIAL NOTE
  66. ------------------------------------------------------------------------------
  67.  
  68. If you are going to be at all serious about the 3B2, and especially if
  69. you are relying on yourself for maintenance, the first thing you want
  70. to do is obtain the AT&T 3B2 Computer Maintenance Manual.
  71.  
  72. It contains diagrams of all 3B2 computers up to the 3B2/600, parts
  73. lists, breakdown procedures, troubleshooting information, and sources
  74. of additional documentation.
  75.  
  76. In addition, it contains the "3B2 Computer Maintenance Utilities"
  77. diskette called "idtools" (formerly known as "devtools").  This floppy
  78. is bootable, and once running, the following options are available:
  79.  
  80.         > format floppy diskettes
  81.         > format hard disk drives
  82.         > verifies hard disk format
  83.         > disk-to-disk high speed copies
  84.         > disk-to-disk copy by sectors
  85.         > disk-to-memory copies
  86.         > defect table builder
  87.         > writes sanity track
  88.         > change default boot information
  89.  
  90. While some of these options are also available from UNIX, all the
  91. utilities here can be run on a machine with a damaged (or missing) hard
  92. disk, often allowing the drive to be repaired that is otherwise
  93. unbootable.
  94.  
  95. This manual and disk can be ordered from the AT&T Customer Information
  96. Center in Indianapolis, IN.  It has select code 305-395, and at press
  97. time it sold for about $125.  The AT&T CuIC can be reached at:
  98.  
  99.     (800) 432-6600    Continental US
  100.     (317) 322-6556    elsewhere
  101.  
  102. The CuIC takes phone orders with a credit card, and with a purchase
  103. order for qualifying companies.  They have many other UNIX-related
  104. books as well, so be sure to ask for their free "AT&T Documentation
  105. Guide", select code 000-011.
  106.  
  107. ------------------------------------------------------------------------------
  108. Subject:  1 How do I install a second ST-506 drive on my 3B2?
  109. ------------------------------------------------------------------------------
  110.  
  111. Copyright 1989 by Owens-Laing Publications.
  112.  
  113. Title:  Disk Expansion on the 3B2
  114. Author: Stephen Friedl (friedl@mtndew.Tustin.CA.US)
  115. Issue:  3B Journal, 4Q 1989
  116. [Edited by Gregory Gulik]
  117.  
  118. [ conventions are:  *bold* and _italics_ ]
  119.  
  120.  Introduction
  121.  ------------
  122.  
  123. The 3B2/400 family (/300, /310 and /400) computers use standard MFM
  124. disk drives, and it is possible to add or replace these drives yourself
  125. -- in this article we show you how to do this.
  126.  
  127. The 3B2/500 and larger machines all have SCSI (Small Computer Systems
  128. Interface) disk drives, so these instructions do not apply to them.
  129. For the duration of this article, "3B2" means the 3B2/400 and below,
  130. and in the case where there are differences among these included models
  131. we will mention them.
  132.  
  133. Before doing any drive replacement, you must obtain the _3B2 Computer
  134. Maintenance Reference Manual_ from AT&T.  This document contains quite
  135. a bit of useful information about your 3B2 hardware, and it is helpful
  136. in its own right.  What makes it so special is the "idtools" diskette
  137. that comes with it.  This floppy disk contains numerous utilities that
  138. will help you diagnose and troubleshoot your computer, as well as the
  139. disk formatting tools we need for our expansion project.
  140.  
  141.  What we don't tell you
  142.  ----------------------
  143.  
  144. This is a fairly technical topic, and it relies on substantial
  145. knowledge of UNIX system administration.  Those steps directly related
  146. to the formatting operation are covered here, but others such as backup
  147. and restore from tape, disk space allocation, and rebooting the machine
  148. are prerequisite knowledge.  AT&T's sysadm documentation covers a great
  149. deal of it, but if these things are new to you, perhaps you're not
  150. ready to give this a go just yet.
  151.  
  152. Please keep in mind that if this is not done correctly (especially the
  153. backups), you could lost most or all of your computer's data in a very
  154. short time.  You must have at least one full, verified backup of all
  155. filesystems, with _two_ backups being safer.  In addition, it is a good
  156. idea to try this during an off time when you can afford to be down for
  157. while if things don't go so well.
  158.  
  159. Finally, we have tried to present this information as accurately and
  160. clearly as we can, but we cannot guarantee that there are no bugs.
  161. Check everything, verify steps with the manual, and ask a local wizard
  162. if you get stuck.  Of course, you undertake this procedure at your own
  163. risk.
  164.  
  165.  Selecting a drive
  166.  -----------------
  167.  
  168. There are many drives on the market that are satisfactory, and we
  169. present some guidelines here for selecting one.  We have our favorites,
  170. but most available ST-506 drives can be used in the 3B2.  Note that
  171. these are suggestions only, not endorsements or guarantees of
  172. compatibility.
  173.  
  174. The first restriction is that the idtools software will not format more
  175. than 1024 cylinders in a single drive, and a drive with more will
  176. simply have the excess cylinders ignored.  This is an unfortunate but
  177. unavoidable waste of disk space, giving us a practical limit of about
  178. 135Mbyte.  (15 heads x 1024 cyls x 18 blks/track x 512 bytes/block).
  179.  
  180. Most of the drives found in the original 3B2 are made by Control Data
  181. (or their subsidiary, Imprimis), and these Wren II drives are of
  182. excellent quality, and they represent a very safe route.  These drives
  183. are available with formatted capacities of 30 and 72 megabytes, and
  184. they have an average access time of about 28 msec.  Other brands known
  185. to work include Maxtor, Miniscribe, Priam, Micropolis and others.  Some
  186. of these drives have more than 1024 cylinders which allows them to be
  187. used, but at less than their advertised capacity.
  188.  
  189.  Disk types and the Equipped Device Table
  190.  ----------------------------------------
  191.  
  192. Each drive in the 3B2 is formatted with a _disk type_, which is a small
  193. number that identifies the drive to the machine.  The disk type indexes
  194. into a table of drive information, and this table is part of the
  195. /dgn/edt_data file.  This file is used to fill the Equipped Device
  196. Table, a list of currently-available hardware devices maintained by the
  197. firmware.  Part of this list, the _subdevice table_, describes the
  198. possible hard disk drives.
  199.  
  200.  Getting started
  201.  ---------------
  202.  
  203. Now that the formatting tools have arrived and a drive has been
  204. obtained, we are ready to do the installation.  It is at this point
  205. that a full backup of the entire system is in order and to review the
  206. relevant portions of the Maintenance Manual.
  207.  
  208. After backing up the current drives, shut down the machine, turn off
  209. the power, and remove the power plug.  Open the case, note the current
  210. configuration of the drive cables, and remove them along with the power
  211. connectors.
  212.  
  213. Select "drive 0" on the drive select jumpers, insert/enable the
  214. terminating resistor, and place the drive back in the cage.  Connect
  215. drive zero's data cable (the thin ribbon cable), the last connector on
  216. the wide control cable, and the power cable to the rear of the drive.
  217. Pay particular attention to pin one orientation, and insure that all
  218. connections are snug.
  219.  
  220. At this point you are ready to turn on the machine.  Plug in the 3B2
  221. power cable and turn the switch to "ON".  The console should show a
  222. SELF CHECK, followed shortly by
  223.  
  224.     FW ERROR 1-02: DISK SANITY FAILURE
  225.                EXECUTION HALTED
  226.  
  227.     SYSTEM FAILURE: CONSULT YOUR SYSTEM ADMINISTRATION UTILITIES GUIDE
  228.  
  229. This ominous message is actually expected, and it just means that the
  230. disk drive is not formatted yet.  At this point, type your current
  231. firmware password (usually "mcp") followed by RETURN, and you will be
  232. presented with the normal firmware menu.
  233.  
  234. At this point you should boot "/idtools" from the floppy drive (load
  235. device 0, FD5).  Once booted, idtools displays an informational message
  236. and asks that RETURN be hit.
  237.  
  238. Note that this entire process is covered in Appendix B of the
  239. Maintenance Reference Manual, and we strongly recommend that you review
  240. sections
  241.  
  242.     Hard Disk Formatter (B-8),
  243.     Defect Table Builder (B-33), and
  244.     Writing Sanity Track (B-47)
  245.  
  246. plus the introduction before continuing.
  247.  
  248.  Running Idtools
  249.  ---------------
  250.  
  251. At the first menu, "formhard" should be entered.  It will ask which disk
  252. should be formatted, and the proper response is zero in most cases.  If
  253. you are doing this procedure on a machine with two drives installed, be
  254. _very_ careful when answering this question.
  255.  
  256. Next, you are asked for drive configuration information.  You must
  257. enter the drive type (from a previous section) plus the drive
  258. dimensions, and the following table summarizes several models we know
  259. about.  If your drive is not shown, consult your vendor documentation
  260. for this information.
  261.  
  262. Drive type    drv id    cyls trk/cyl sec/trk byte/cyl     abbrev
  263. --------------- ------    ---- ------- ------- --------      ------
  264. Wren II 30MB       3     697     5    18    512       HD30
  265. Wren II 72MB       5     925     9    18    512       HD72
  266. Fujitsu M2243AS       8     754    11      18      512       HD72C
  267. Micropolis 1325    5    1024     8      18      512       HD72
  268. Maxtor 1140       4*     918=    15    18    512       HD120
  269. Maxtor 1190      11    1224+   15    18    512       HD135
  270. Miniscribe XXXX    4*
  271. Priam XXXX
  272.  
  273. * selected by user
  274. + can only use 1024 cylinders on this drive
  275. = can usually be formatted out to 1024 cylinders, even though it is
  276.   actually capable of 1224 cylinders, like the 1190.
  277.  
  278. Note that "tracks/cylinder" means "heads", and the sectors/track and
  279. bytes/cylinder values the same for all drives.  The drive ID is shown
  280. as 4 for high-capacity drives, and it assumes that this number was
  281. inserted into the Equipped Device Table subdevice listing.
  282.  
  283. In the following examples, user responses are in *bold*, and the drive
  284. shown is a Maxtor 1140.  Note that the default entries shown may vary
  285. from machine to machine.
  286.  
  287.     Format which disk [ 0 or 1 ] (0)?  *0*
  288.  
  289.     Drive id: 3- ? *4*
  290.     Number of cylinders: 687 - ?  *918*
  291.     Numbers tracks/cyl: 5 - ?  *15*
  292.     Number sectors/track: 18 - ? *18*
  293.     Number bytes/sector: 512 - ? *512*
  294.  
  295. Once these values have been entered, idtools shows where it will place
  296. various housekeeping areas on the disk, almost all stored on the first
  297. two cylinders.  You need not concern yourself with the specific values
  298. printed.
  299.  
  300.  Defect Mapping
  301.  --------------
  302.  
  303. The bad block listing (with various alternate names, such as "Flag
  304. Track Log") is usually found on a sticker on top of the drive.  To
  305. simplify data entry, it is a good idea to photocopy this sticker while
  306. it is on the drive, because later the drive might not be in such a
  307. comfortable reading position (especially if it is in a drive cage).
  308.  
  309. The first prompt in this section asks if the backup defect table should
  310. be modified.  A formatted drive normally has two copies of the defect
  311. table on disk in case one is lost, but a blank drive has no such
  312. table.  Answering "yes" to this question means that the data you enter
  313. here is stored in both places.
  314.  
  315. To enter the defects, enter "new" when asked, then "bc" for the type of
  316. defect byte count.  Then, for each bad sector, enter the cylinder
  317. number, the head number, and the byte count, all separated by spaces.
  318. This "byte count" field is often shown on the disk label as "BFIND"
  319. (bytes from index) or "BCAI" (byte count after index), and it is
  320. distinct from the sector number.  Most entries have a block length of
  321. one, but if the label shows more than this then it must be the fourth
  322. field on the line.
  323.  
  324. An entry of "q" terminates the input, and displays the entire list of
  325. blocks entered.  It is vital that this list be checked completely, and
  326. edits made if necessary.  An entry of just a RETURN accepts the current
  327. list and moves onto the next prompt.
  328.  
  329.                Format entire disk - type 1
  330.               Format single track - type 2
  331.     Format from selected track to end - type 3
  332.  
  333.     Select type of format [1, 2, or 3] (1) ?
  334.  
  335. Entering "1" followed by RETURN starts the formatting process, and when
  336. it completes it starts a verify pass where all blocks on the disk are
  337. examined for errors.  This operation can take some time on a large
  338. drive, and idtools shows its progress with a message displayed every
  339. five cylinders formatted.
  340.  
  341. After the format and verify, idtools writes the "sanity track" with the
  342. "fixdisk" program.  The sanity track contains a special data pattern
  343. that validates the drive to the 3B2, and it takes just a moment and
  344. requires no input from you.
  345.  
  346. With the conclusion of the fixdisk operation the drive is formatted.
  347. You can remove the idtools floppy and power the machine down.
  348.  
  349.  Closing up the machine
  350.  ----------------------
  351.  
  352. The machine should now be put back together and the original drives
  353. reinstalled.  It is important that all drive selects and terminating
  354. resistors be installed properly, following the rules mentioned
  355. previously.
  356.  
  357. The first drive in the machine has the lowest drive select jumper
  358. (usually position zero) and connected to the zero data cable (usually
  359. the bottom drive).  The second drive in the machine has the next drive
  360. select (usually position one) and the other data cable, and the control
  361. cable connects them both.  The drive that is at the physical end of the
  362. control cable must have the terminating resistor.
  363.  
  364. Disk drives installed into an XM expansion module have special rules on
  365. termination, and these are documented and diagrammed on pages 6-23 and
  366. 6-24 of the Maintenance Reference Manual.
  367.  
  368.  Partitioning the drive
  369.  ----------------------
  370.  
  371. The easiest case is adding a second drive to a machine that previously
  372. had only one.  After installing the new unit, boot /unix from the hard
  373. drive and enter single-user mode (this is much easier if you have
  374. edited /etc/inittab).
  375.  
  376. With the /usr partition mounted, run the "sysadm" command, and at each
  377. successive menu, enter "diskmgmt", "harddisk", and "partitioning" in
  378. turn.  This enters the partitioning operation and it should prompt you
  379. for the relevant information.  We do not discuss strategies for
  380. allocating filesystem resources, as this is covered in the AT&T system
  381. administrative documentation.
  382.  
  383. Once the drive is partitioned, the added filesystems (say, /usr2 and
  384. /usr3) may be used immediately.
  385.  
  386. All other cases involve replacing existing drives, and it most
  387. expedient to use the full restore procedure for this.  A full backup is
  388. absolutely required here for this operation, and it should be verified
  389. once it is made.
  390.  
  391. Boot the "Essential Utilities - Disk 1" floppy and select the "Full
  392. Restore" operation.  This procedure includes a partitioning step that
  393. allows you to allocate your new disk resources.  Follow the
  394. instructions shown on the screen.
  395.  
  396. After the core set of floppies -- five or six disks -- you can
  397. interrupt this process, boot /unix from the hard disk, and restore all
  398. of your backups.  You may have to install the Cartridge Tape Utilities
  399. if your backups are stored on that medium.
  400.  
  401. WARNING: This "full restore" operation destroys all data on all hard
  402. disks during the partitioning, and you _must_ have a full set of
  403. reliable, verified backups before considering this step, and two full
  404. sets of backups would not be a bad idea.  If these backups are not done
  405. properly, all data on the disks will be LOST.  Please be very careful
  406. when doing this, as mistakes can be costly.
  407.  
  408.  Compatibility note
  409.  ------------------
  410.  
  411. Some early models of the 3B2/300 do not permit a 72MB hard drive to be
  412. added to the system board.  The recognizing signs for this restriction
  413. are documented in the Maintenance Reference Manual on page 7-21, and
  414. 3B2/300 owners should consult this information before starting this
  415. project.
  416.  
  417. While the documentation does not mention the reason for this
  418. restriction, we speculate that any drive with more than eight heads
  419. cannot be used in these older machines.
  420.  
  421. ------------------------------------------------------------------------------
  422. Subject:  2 How do I create a second swap partition?
  423. ------------------------------------------------------------------------------
  424.  
  425. These are the steps I used to add a second swap partition to my
  426. 3B2/400.  Why add a second  swap area?   By default, the SVR3.1
  427. system disks (the version I use) make one swap area of 10196 blocks
  428. on the first hard disk (/dev/rdsk/c1d0s1).  While this 5Mb area
  429. seems plenty for most uses, I managed to exhaust it.  It was time to
  430. RTFM.  While the manual gives you the confidence to say that you *can*
  431. increase the number of swap partitions, it doesn't clearly tell you
  432. exactly how to go about doing that.  What follows are the steps you
  433. can follow to add another swap partition to your system.
  434.  
  435. Are you adding this swap space "just to balance the load"?  If so,
  436. forget it.  The effect is negligible and clearly not worth the effort.
  437. I have been unsuccessful in conclusively proving whether or not SVR3.1
  438. does perform balanced allocation of the swap space.  It seems to knock
  439. a huge chunk off the first partition before it even touches the second
  440. one.  I would not think of doing this unless you have SVR3.1 or
  441. SVR3.2.  Earlier versions do not have the advanced swap handling
  442. functions, and may not even allow you to do this.  Upgrade time.
  443. The only reason to add another swap partition is if you have a valid
  444. reason to do so (i.e. you have exhausted your present swap space).
  445. Remember that swap cannot be used for anything else, you take space
  446. away from your mountable filesystems when you add swap space.
  447.  
  448. Please keep in mind that this is *your* system, and these steps can
  449. easily wipe out all your data files.  Take adequate care to back
  450. up your data.  Make sure your backups work before you start any of this.
  451.  
  452. IT IS STRONGLY RECOMMENDED THAT YOU HAVE A PAPER COPY OF THESE
  453. DIRECTIONS IN FRONT OF YOU AS YOU PERFORM THIS TASK.
  454.  
  455. Step 0: BACK UP THE SYSTEM!  I cannot stress this enough.
  456.         If you have a tape drive, use that in preference over the
  457.     floppy drive.  Back up the /, /usr, and /usr2 partitions.
  458.     While it is not mandatory, it's also a good idea to back up
  459.     everything else just in case catastrophe strikes.  Expect the
  460.     worst and hope for the best.
  461.  
  462. Step 1: Reload the Foundation floppies and select a custom partition
  463.         setup.  Pick the sizes you want for the new swap partitions.
  464.     Since you are adding a second swap partition, it is up to you
  465.     if you wish to add to (or keep) the original 5Mb swap
  466.     partition.  It is mandatory that you keep *some* swap space on
  467.     the first disk.  There is no rule that says the 2 partitions must
  468.     be equal in size.  Finish the full restore.
  469.  
  470.     For Your Information: the sizes of the partitions are
  471.     dependent on the number of blocks per cylinder group.  That
  472.     means, you can specify size in units of (18 * number of
  473.     heads).  If you specify a number that is not a round figure,
  474.     the machine will round it for you.  RECORD THIS NUMBER!!!
  475.     This new partition will be named /usrX (where X is a positive
  476.     integer) and there will be a filesystem made upon it.  Do not worry.
  477.  
  478. Step 2: Bring up unix, log in as root, and bring the machine to runlevel 1.
  479.         When the machine is in single-user mode, make sure that all
  480.     disk partitions are unmounted (except for the root partition!)
  481.  
  482. Step 3: Make a temporary file with the existing partition data:
  483.  
  484.         # prtvtoc /dev/rdsk/c1d1s6 > /tmp/disk.data
  485.  
  486. Step 4: Edit the disk.data file.  Make the following changes:
  487.         change the tag field from 0 to 3 (from 'user' to 'swap')
  488.         change the flags from 00 to 01 (unmountable partition)
  489.         delete all the initial comments (lines with initial *'s)
  490.     Double check this file to make sure you got it right
  491.  
  492. Step 5: Save this data back to the hard disk.  If you choose to chicken
  493.         out, do it BEFORE THIS STEP:
  494.  
  495.         # fmthard -s /tmp/disk.data /dev/rdsk/c1d1s6
  496.  
  497. Step 6: Edit /etc/fstab to remove the reference to the now defunct
  498.         filesystem.  You don't have to do anything else to the actual
  499.     partition to remove the filesystem - the system will page over
  500.     the superblock and inode lists by itself.
  501.  
  502. Step 7: Use /etc/swap to tell the system that the partition is ready
  503.         for paging/swapping.  The best way to do this is to make the
  504.     system add this partition each time it boots.  Create a file
  505.     called /etc/rc2.d/S00SETSWAP.  Link it to the file
  506.     /etc/init.d/S00SETSWAP.  In this file, add the following line:
  507.  
  508.     /etc/swap -a /dev/dsk/c1d1sYY 0 XXXXX
  509.  
  510.     In this case, the Y's in the disk name should be set to the
  511.     disk partition that the new swap space is to be located on.
  512.     Usually, this is partition 8 (if you specified the swap space
  513.     as the first partition on the disk before /usr).  The 0 (zero)
  514.     signifies that swap activity is to start at the 0th block of
  515.     the partition - the start.  Replace the XXXXX with the number
  516.     of blocks available in the partition.  This is the number you
  517.     recorded in Step 1 above.
  518.  
  519. Step 8: Reboot and pray.  If it all went well, the machine will come
  520.         up in multi-user mode.  Once again, log in as root and bring
  521.     the machine down to single-user state.  Make sure that the
  522.     system is actually using the new partition with the 
  523.  
  524.     # /etc/swap -l
  525.  
  526.     command.  You should see the original swap partition
  527.     (/dev/dsk/c1d0s1) as well as your new partition listed.
  528.  
  529.     If your machine did not boot for some bizarre reason, reload
  530.     the system again (go to step 1), making sure that you do
  531.     everything correctly.
  532.  
  533. Step 9: Restore your data.  If you backed up on floppy, just restore
  534.         them in order and reboot.  If you backed up on a CTC tape drive,
  535.         you must install the Cartridge Tape Utilities disk, reboot,
  536.         recover your data, and reboot one last time.  IF you didn't back
  537.         up your data, then you're SOL.
  538.  
  539.         A note to those with XDC and SCSI drives - the maneuvers you
  540.         have just completed only messed up the data on the 2 internal
  541.         disk drives.  Any data on your 3rd (and higher) drives should
  542.         remain untouched.  
  543.  
  544. There is another way to do this whole thing without reloading the
  545. entire OS.  It involves having a boot floppy with prtvtoc, fmthard,
  546. swap, and a few other files on it.  You would have to make this before
  547. hand (explained in a different question).  In this instance, you would
  548. only alter the partitions on the disk you added the new partition to.
  549. This, however, would force you to re-create and restore filesystems on the
  550. partition(s) you borrowed space from.  For my time and money, it was
  551. easier (and less error-prone) to add the swap partition by reloading
  552. the Foundation disks.  True Blue Gurus (TM) can experiment with the
  553. second method.
  554.  
  555. Comments and criticisms welcome.
  556.  
  557. Jeffrey L. Bromberger ------- System Manager ------- Tramway Unix Systems
  558. jeffrey@squid.tram.com      Anywhere!{van-bc,limbic,icus}!tram!jeffrey
  559.  
  560. ------------------------------------------------------------------------------
  561. Subject:  3 How can I get X11 for the 3B2?
  562. ------------------------------------------------------------------------------
  563.  
  564. From: aj4640@dean1.usma.edu  Robertson John MAJ at US Military Academy, West
  565. Point, N
  566.  
  567. [Read the P.S. at the end of this message before attempting to
  568.  ftp these files.]
  569.  
  570. The X11 R4 distribution tape contains sources to run clients on a 3b1.
  571. Several of us have hacked those sources to enable clients to run on a
  572. 3b2.
  573.  
  574. I wish I could offer the source patches directly but for various
  575. reasons, I can't.  However, 3b2 users are more than welcome to have the
  576. clients, the libraries, the include files, and the pre-processor.  This
  577. will get X-windows up on your 3b2 without the xdaemon stuff (as long as
  578. you have the Wollongong networking stuff.)  With this stuff, you'll
  579. have a pile of ready-to-run clients as well as the tools needed to
  580. compile your own X11 applications.
  581.  
  582. In addition to the default X11 R4 clients, bin.tar.Z also has a running
  583. copy of tgif, xdvi, xmahjongg [you'll need to do the fonts for your
  584. server.  UTSL!], and lots of other neat stuff.
  585.  
  586. The lib.tar.Z contains libX11.a, libXt.a, etc.  In addition, the
  587. app-defaults for all the clients in bin.tar.Z are also here.
  588.  
  589. include.tar.Z has all the include files.  You'll need these if you want
  590. to compile your own stuff.
  591.  
  592. cpp.tar.Z is a compiled version of the X11 distribution preprocessor.
  593. In this version, you'll need to define the symbol 3b2 before
  594. invocation.  It will not gag on the big header files that many X
  595. applications use.
  596.  
  597. The files can be obtained via anonymous ftp from euler.math.usma.edu.
  598. They are in pub/3b2.  Other than unpacking and installing the clients
  599. and lib stuff in the usual places, no other special work should be
  600. needed.
  601.  
  602. I cannot offer any support for this stuff.  Take it, hack it, and have
  603. fun.  Even more, give the clients away to other suffering 3b2 users.
  604. It has made our 3b2's substantially easier to use.
  605.  
  606. Jack
  607.  
  608. P.S.  The X11R4 clients for the 3B2 have been moved to Bradley University
  609.       on erratic.bradley.edu in pub/3B2_X.  If that system is down, you
  610.       may want to also try ds3.bradley.edu, also in pub/3B2_X.
  611.  
  612. ------------------------------------------------------------------------------
  613. Subject:  4 How do I install a non AT&T SCSI drive on my 3B2?
  614. ------------------------------------------------------------------------------
  615.  
  616. From: geoff@ugc.uucp (Geoff Coleman)
  617.  
  618. Installation of Third Party SCSI drive on AT&T 3B2
  619.  
  620. [This item covers adding a third party SCSI drive to a 3B2 only
  621.  as additional partitions to the ones on the internal MFM disks.
  622.  Another item in this FAQ discusses uses a SCSI disk for the root
  623.  and swap partitions as that is a considerably more involved
  624.  procedure.]
  625.  
  626. 1.  Hardware Addition
  627. The hardware installation is relatively simple. The SCSI address of the
  628. disk must be set via jumpers. If the disk being added is the first
  629. outside disk for the 3B2 then the you must use an "AT&T SCSI Connect
  630. Kit".
  631.  
  632. 2.  Telling the system about the disk
  633. After the disk has been physically attached the machine should be
  634. restarted.  If the disk is one that is unknown to the 3B2 a message
  635. will appear on the console that there is an unknown scsi device "make"
  636. "model". The make and model information is important.
  637.  
  638. Once the 3b2 is rebooted login as root and cd to /etc/scsi.  At
  639. this point you should run ./edittbl -l to list all of the SCSI
  640. devices known to the system. Then insert a new entry into the
  641. device table with the .edittbl -i command. The first entry is the
  642. make and must be padded with spaces to 8 characters.  The second
  643. entry is the model and must be padded to 16 characters with spaces.
  644. The number of lu's is one unless it is a bridge controller.
  645.  
  646. At this point you should reboot the machine and there should be no
  647. unknown device error message on bootup.
  648.  
  649. 3.  Formatting the disk
  650. Once the system has been rebooted login as root and change the run
  651. level to single user mode and remount /usr if need be.
  652.  
  653. At this point you need to cd to /usr/lib/scsi and edit the file
  654. tc.index.  Add an entry for the new disk in the same manner as the
  655. other entries in this file. Make sure that the model number starts in
  656. column 9 and is padded out to 16 characters, if you receive an unable
  657. to open script file message on formatting the problem is most likely in
  658. this entry.
  659.  
  660. At this point you can run the format program from either sysadm or the
  661. command line. After the format has finished reboot the system and the
  662. disk should be listed as a formatted disk.
  663.  
  664. ------------------------------------------------------------------------------
  665. Subject:  5 How do I prevent data overrun errors when using a high
  666.             speed modem on an EPORTS card at 19.2K baud or higher?
  667. ------------------------------------------------------------------------------
  668.  
  669. The EPORTS board can easily handle 38.4K baud on an otherwise
  670. unloaded system, provided Hardware Flow Control is enabled.  The
  671. hard part is keeping HFC enabled.  Several solutions to this problem
  672. exist, but one that seems to work is (1) to have a daemon set HFC
  673. on open lines periodically, and (2) have uugetty enable HFC on all
  674. logins.
  675.  
  676. Some people have found the 1.2 version of the EPORTS driver to be
  677. buggy, and that 1.3 allows for significantly higher throughput.
  678.  
  679. Elliot Dierksen submitted two solutions to this problem.  Each one
  680. addresses the problem in two different ways.  The first one enables
  681. HFC when a user logs in a HFC capable serial port.  The second one
  682. is a daemon spawned by init(1) that periodically enables HFC on
  683. specified serial lines.
  684.  
  685. From: elliot@oau.org (Elliot B Dierksen)
  686.  
  687. ----- Solution #1 -----
  688.  
  689. Step 1: copy uugetty to some new name (I used epuugetty). Use some
  690. sort of binary editor to change the exec of '/bin/login' to '/bin/ephfc'.
  691.  
  692. Step 2: compile ephfc. Here it is!
  693.  
  694. I have had no problems with this at all, but your mileage may vary.
  695. No promises implied or intended. Even with cron entries to set HFC,
  696. I still have problems on occasion with dial outs. Inbound calls
  697. work great.
  698.  
  699. I hope you all find this useful!
  700.  
  701. ----------------cut here--------------------------------------
  702. /* ephfc.c
  703.  
  704. handle hardware flow control on EPORTS and then exec login
  705.  
  706. This program sets hardware flow control on an EPORTS card in an
  707. AT&T 3B2 computer. Patch getty (or uugetty) to exec ephfc instead of login.
  708.  
  709. 04/18/1992 - Elliot Dierksen (elliot@oau.org)
  710.  
  711. */
  712.  
  713. /* standard header files */
  714. #include <stdio.h>
  715. #include <fcntl.h>
  716. #include <errno.h>
  717. #include <sys/ct_dep.h>
  718. #include <termio.h>
  719.  
  720. /* EPORTS header files */
  721. #include <sys/queue.h>
  722. /*#include <sys/ep_dep.h>*/
  723. #include <sys/eppc.h>
  724. #include <sys/ep_lla.h>
  725.  
  726. #define IN_FD   0
  727. #define OUT_FD  1
  728.  
  729. main(argc,argv,envp)
  730. int argc;
  731. char **argv,**envp;
  732. {
  733. char *login_prog = "/bin/login";
  734. struct etty ettyp;
  735. struct termio termiop;
  736.  
  737.     /* abort if ioctl read fails. this might happen this is not an EPORT */
  738.     if (ioctl(IN_FD,EP_GETA,&ettyp) == -1)
  739.     {
  740.         fprintf(stderr,"%s: ioctl(EP_GETA) failed(%d)\n",argv[0],errno);
  741.         fflush(stderr);
  742.         exit(6);
  743.     }
  744.  
  745.     /* abort if ioctl read fails. No clue what might have gone wrong! */
  746.     if (ioctl(IN_FD,TCGETA,&termiop) == -1)
  747.     {
  748.         fprintf(stderr,"%s: ioctl(TCGETA) failed(%d)\n",argv[0],errno);
  749.         fflush(stderr);
  750.         exit(7);
  751.     }
  752.  
  753.     /* turn off XON/XOFF */
  754.     termiop.c_iflag &= ~(IXON|IXOFF|IXANY);
  755.  
  756.     /* set regular ioctl values */
  757.     ioctl(OUT_FD,TCSETA,&termiop);
  758.  
  759.     /* set EPORTS values */
  760.     ioctl(OUT_FD,EP_HFC,0);
  761.  
  762.     /* reset arg[0] for login */
  763.     argv[0] = login_prog;
  764.  
  765.     /* exec login and hope for the best! */
  766.     execv(login_prog,argv);
  767. }
  768.  
  769. ----- Solution #2 -----
  770.  
  771. I made some more changes to sethfc. Somebody didn't like my system
  772. where init respawned it every 60 seconds. Actually, I didn't like
  773. it much since it was making my wtmp file HUGE! I made sethfc2 able
  774. to take multiple tty arguments and added a daemon mode. Here is
  775. the inittab line:
  776.  
  777. hfc:234:respawn:/etc/sethfc2 -C -E tty21 tty31 tty34 # Set Hardware Flow Control
  778.  
  779. And here is the program (comments welcomed):
  780. *************** BEGIN sethfc2.c ********************
  781. /* sethfc2.c
  782.  
  783. set (or reset) hardware flow control on EPORTS
  784.  
  785. This program sets (or resets) hardware flow control on an EPORTS card in an
  786. AT&T 3B2 computer.
  787.  
  788. command line options:
  789.  
  790. -C)    open port with O_NDELAY (ignore status of DCD)
  791. -H X)    hardware flow control flag where X = Y or N (for yes or no)
  792.     ******  default value is HFC ON!
  793. -S) sleep 60 seconds after setting port
  794. -t N) set sleep time to N seconds
  795. -E) endless (daemon) mode
  796.  
  797. argument list:
  798. 1-N)    tty name(s):    same as getty argument (tty24)
  799.  
  800. 05/17/1993 - Elliot Dierksen (elliot@oau.org)
  801. 07/15/1993 - Elliot Dierksen.  Added daemon mode, and -t option
  802.  
  803. */
  804.  
  805. /* standard header files */
  806. #include <stdio.h>
  807. #include <fcntl.h>
  808. #include <errno.h>
  809. #include <termio.h>
  810.  
  811. /* EPORTS header files */
  812. #include <sys/du_dep.h>
  813. #include <sys/queue.h>
  814. #include <sys/eppc.h>
  815. #include <sys/ep_lla.h>
  816.  
  817. #define MAX_OPT_ARGS    6
  818.  
  819. main(argc,argv,envp)
  820. int argc;
  821. char **argv,**envp;
  822. {
  823. extern char *optarg;
  824. extern int optind,opterr;
  825.  
  826. char *usage = "usage: %s [-C] [-S] [-t N] [-E] [-H y|n] line [line...]\n";
  827.  
  828. char opt_args[MAX_OPT_ARGS][32], *devname;
  829.  
  830. int c, tty_fd, oflag=O_RDWR, tty_count=0;
  831. int ep_flags;
  832. short errflag=0, hfc_flag=1, sleepflag=0, sleeptime=60, daemon=0;
  833. struct etty ettyp;
  834. struct termio termiop;
  835.  
  836.     /* initialize string variables to null */
  837.     for (c = 0; c < MAX_OPT_ARGS; c++)
  838.         *opt_args[c] = '\0';
  839.  
  840.     /* process options */
  841.     while ((c = getopt(argc,argv,"H:CSEt:")) != -1)
  842.         switch (c)
  843.         {
  844.         /* sleep (sleeptime) seconds after setting port */
  845.         case 'S':
  846.             sleepflag = 1;
  847.             break;
  848.  
  849.         /* set sleep time to other than the default */
  850.         case 't':
  851.             {
  852.             int newtime;
  853.  
  854.                 newtime = atoi(optarg);
  855.                 /* make sure that the time is at least 1 second */
  856.                 if (newtime > 0)
  857.                     sleeptime = newtime;
  858.             }
  859.             break;
  860.  
  861.         /* set port endlessly (daemon mode) */
  862.         case 'E':
  863.             /* force sleepflag on. otherwise, this process would eat
  864.             the CPU alive!! */
  865.             sleepflag = 1;
  866.             daemon = 1;
  867.             break;
  868.  
  869.         /* ignore DCD when opening port */
  870.         case 'C':
  871.             oflag |= O_NDELAY;
  872.             break;
  873.  
  874.         /* hardware flow control flag */
  875.         case 'H':
  876.             switch(*optarg)
  877.             {
  878.             /* turn HFC on */
  879.             case 'Y':
  880.             case 'y':
  881.                 hfc_flag = 1;
  882.                 break;
  883.  
  884.             /* turn HFC off */
  885.             case 'N':
  886.             case 'n':
  887.                 hfc_flag = 0;
  888.                 break;
  889.  
  890.             /* invalid argument, error out */
  891.             default:
  892.                 errflag++;
  893.                 break;
  894.             }
  895.             break;
  896.  
  897.         /* invalid argument or usage help requested */
  898.         case '?':
  899.             errflag++;
  900.             break;
  901.         }
  902.  
  903.     /* show usage and exit if there was an error */
  904.     if (errflag)
  905.     {
  906.         fprintf(stderr,usage,argv[0]);
  907.         fflush(stderr);
  908.         exit(2);
  909.     }
  910.  
  911.     /* load arguments */
  912.     for (c=0; optind < argc && c < MAX_OPT_ARGS; optind++, c++)
  913.     {
  914.         sprintf(opt_args[c],"/dev/%s",argv[optind]);
  915.         tty_count++;
  916.     }
  917.  
  918.     /* if we didn't get a tty name */
  919.     if (!tty_count)
  920.     {
  921.         /* can't run without a device, error out */
  922.         fprintf(stderr,usage,argv[0]);
  923.         fflush(stderr);
  924.         exit(4);
  925.     }
  926.  
  927.     /* Here comes the meat of the program. Executed at least once. Endlessly
  928.         if we are in daemon mode */
  929.     do
  930.     {
  931.         /* loop through the ports we have to process */
  932.         for (c = 0; c < tty_count; c++)
  933.         {
  934.             /* set our temp pointer to the device name */
  935.             devname = opt_args[c];
  936.  
  937.             /* abort if we can't open the device */
  938.             if ((tty_fd = open(devname,oflag,0)) == -1)
  939.             {
  940.                 fprintf(stderr,"%s: could not open %s(%d)\n",argv[0],devname,errno);
  941.                 fflush(stderr);
  942.                 exit(5);
  943.             }
  944.  
  945.             /* abort if ioctl read fails. this might happen this is not an EPORT */
  946.             if (ioctl(tty_fd,EP_GETA,&ettyp) == -1)
  947.             {
  948.                 fprintf(stderr,"%s: ioctl(EP_GETA) failed on %s(%d)\n",argv[0],devname,errno);
  949.                 fflush(stderr);
  950.                 exit(6);
  951.             }
  952.  
  953.             /* abort if ioctl read fails. No clue what might have gone wrong! */
  954.             if (ioctl(tty_fd,TCGETA,&termiop) == -1)
  955.             {
  956.                 fprintf(stderr,"%s: ioctl(TCGETA) failed on %s(%d)\n",argv[0],devname,errno);
  957.                 fflush(stderr);
  958.                 exit(7);
  959.             }
  960.  
  961.             /* is HFC set? */
  962.             if (hfc_flag)
  963.             {
  964.                 /* turn off XON/XOFF */
  965.                 termiop.c_iflag &= ~(IXON|IXOFF|IXANY);
  966.  
  967.                 /* set flag for HFC */
  968.                 ep_flags = EP_HFC;
  969.             }
  970.             else
  971.             {
  972.                 /* turn on XON/XOFF */
  973.                 termiop.c_iflag |= (IXON|IXANY);
  974.  
  975.                 /* set flag for SFC */
  976.                 ep_flags = EP_NHFC;
  977.             }
  978.  
  979.             /* set regular ioctl values */
  980.             ioctl(tty_fd,TCSETA,&termiop);
  981.  
  982.             /* set EPORTS values */
  983.             ioctl(tty_fd,ep_flags,0);
  984.  
  985.             /* close the port */
  986.             if (close(tty_fd) == -1)
  987.             {
  988.                 fprintf(stderr,"%s: could not close %s(%d)\n",argv[0],devname,errno);
  989.                 fflush(stderr);
  990.                 exit(8);
  991.             }
  992.         }
  993.  
  994.         /* sleep if need be */
  995.         if (sleepflag)
  996.             sleep(sleeptime);
  997.     } while (daemon);
  998.  
  999.     exit(0);
  1000. }
  1001.  
  1002. ------------------------------------------------------------------------------
  1003. Subject:  6 What does the 'NOTICE: File Table Overflow' error mean?
  1004. ------------------------------------------------------------------------------
  1005.  
  1006. From: v.hoang@att.com
  1007.  
  1008. It means more files being opened than the limit you've set for the
  1009. system.  Edit /etc/master.d/kernel and bump up the values of NFILE,
  1010. NINODE & NS5INODE (or something close to that), then cd /boot,
  1011. mkboot -k KERNEL, touch /etc/system then reboot the system.
  1012.  
  1013. ------------------------------------------------------------------------------
  1014. Subject:  7 How do I set up anonymous ftp?
  1015. ------------------------------------------------------------------------------
  1016.  
  1017. From: rdc30@nmrdc1.nmrdc.nnmc.navy.mil (LCDR Michael E. Dobson)
  1018. Subject: Anonymous ftp with WIN/TCP 3.0.x YES!!
  1019.  
  1020. Contrary to the documentation for WIN/TCP 3.0.{0,1}, it is possible to
  1021. set up anonymous ftp.  The Bugs: note in the documentation about it not
  1022. being fully implemented in this release seems to be just a
  1023. documentation omission.  I saw the method to use on a US military 3B2
  1024. Users Group mailing list.  The missing parts are the creation of a dev
  1025. directory in the root of the ftp account directory with null and tcp
  1026. devices created with mknod, and the inclusion of the services file in
  1027. the etc subdir along with group and passwd files.  You of course need
  1028. ls & pwd in bin and a pub tree.  Below is the output of ls -lR in my
  1029. ftp root as well as the passwd in ~ftp/etc/passwd.  Try it out and
  1030. see.
  1031.  
  1032. total 5
  1033. drwxr-xr-x   2 root     other         64 Jan 23 11:12 bin
  1034. drwxr-xr-x   2 root     other         64 Jan 23 11:09 dev
  1035. drwxr-xr-x   2 root     other         80 Jan 23 11:13 etc
  1036. drwxr-xr-x   2 ftp      sys          240 Jan 23 11:16 pub
  1037. drwxr-xr-x   2 root     other         64 Aug 28 20:01 shlib
  1038.  
  1039. /usr3/ftp/bin:
  1040. total 111
  1041. ---x--x--x   1 root     other      35678 Jan 23 11:11 ls
  1042. ---x--x--x   1 root     other      19551 Jan 23 11:11 pwd
  1043.  
  1044. /usr3/ftp/dev:
  1045. total 0
  1046. crw-rw-rw-   1 root     sys       63, 43 Aug 28 19:57 circ
  1047. crw-rw-rw-   1 root     sys       49,  2 Jan 23 11:09 null
  1048. crw-rw-rw-   1 root     sys       63, 38 Jan 23 11:09 tcp
  1049. crw-rw-rw-   1 root     sys       63, 36 Aug 28 19:56 udp
  1050.  
  1051. /usr3/ftp/etc:
  1052. total 4
  1053. -r--r--r--   1 root     other        336 Jan 23 11:12 group
  1054. -r--r--r--   1 root     other         56 Jan 23 11:13 passwd
  1055. -r--r--r--   1 root     other        884 Jan 23 11:12 services
  1056.  
  1057. /usr3/ftp/pub:
  1058. total 0
  1059.  
  1060. /usr2/ftp/shlib:
  1061. total 211
  1062. -r-xr-xr-x   1 root     other      66626 Aug 28 20:01 libc_s
  1063. -r-xr-xr-x   1 root     other      39859 Aug 28 20:01 libnsl_s
  1064.  
  1065. Contents of ~/ftp/etc/passwd:
  1066.  
  1067. ftp:x:13:1:Anonymous FTP Account:/usr3/ftp:/usr/bin/ftp
  1068.  
  1069. --
  1070. Mike Dobson, Sys Admin for      | Internet: rdc30@nmrdc1.nmrdc.nnmc.navy.mil
  1071. nmrdc1.nmrdc.nnmc.navy.mil      | UUCP:   ...uunet!mimsy!nmrdc1!rdc30
  1072. AT&T 3B2/600G Sys V R 3.2.2     | BITNET:   dobson@usuhsb or nrd0mxd@vmnmdsc
  1073. WIN/TCP for 3B2                 | MCI-Mail: 377-2719 or 0003772719@mcimail.com
  1074.  
  1075. A special note from Steven M. Kilby <skilby@ucqais.cba.uc.edu>
  1076.  
  1077. Anonymous FTP for the 400:
  1078.     Setting up an anonymous FTP login for the 3B2/400 differs slightly from
  1079. the instructions in the FAQ.  The FAQ instructions will work on 600's or
  1080. 1000's.  The only changes are in the directory setup.
  1081.  
  1082. [As other people found the original anonymous FTP setup did not
  1083.  work at all without Steven M. Kilby's changes, I modified the
  1084.  directory structure above to reflect Steve's changes.  -greg]
  1085.  
  1086. Also:
  1087. From: Kevin Darcy <kevin@cfctech.cfc.com>
  1088.  
  1089. Also, you should probably make people aware that the exact minor
  1090. numbers for all clone devices will vary from system to system, and
  1091. to only use the ones displayed as a guide. For instance, my dev
  1092. entries for circ, tcp & udp are
  1093.  
  1094. crw-rw-rw-   1 root     other     63, 66 Sep 10  1991 /dev/circ
  1095. crw-rw-rw-   1 root     other     63, 56 Sep 10  1991 /dev/tcp
  1096. crw-rw-rw-   1 root     other     63, 58 Sep 10  1991 /dev/udp
  1097.  
  1098. which is somewhat different than what's shown above (cfctech's
  1099. major numbers are higher than most folks', because we have run
  1100. StarLAN, Datakit & WIN/TCP all simultaneously on the machine, in
  1101. addition to everything on the release tape, and, at one point, even
  1102. loaded X Windows on the box (!)).
  1103.  
  1104. ------------------------------------------------------------------------------
  1105. Subject:  8 Is there a reposity of ftp-able 3B2 programs?
  1106. ------------------------------------------------------------------------------
  1107.  
  1108. The following are some 3B2 ftp sites that I know of and what they
  1109. contain:
  1110.  
  1111. ames.arc.nasa.gov (128.102.18.3)
  1112.     Kyoto-Lisp, Pascal, Sendmail, citadel-bbs
  1113.  
  1114. ds3.bradley.edu (136.176.5.79)
  1115.     X11R4, old gcc
  1116.  
  1117. erratic.bradley.edu (136.176.5.253)
  1118.     X11R4, old gcc
  1119.  
  1120. stasi.bradley.edu (136.176.5.121)
  1121.     xarchie, lpr/lpd
  1122.  
  1123. sctc-1.aetc.af.mil (131.44.15.2)
  1124.     Just about everything that will run on a 3B2.
  1125.  
  1126. (I haven't checked these sites lately, so it's likely they don't
  1127.  exists any longer or at least don't carry 3B2 archives any more.)
  1128.  
  1129.  
  1130. ------------------------------------------------------------------------------
  1131. Subject:  9 How do I run Unix from floppy (for example, to repair a damage
  1132.         hard drive file system)?
  1133. ------------------------------------------------------------------------------
  1134.  
  1135.                Running a Standalone Shell on a 3B2
  1136.  
  1137.                         Stephen J. Friedl
  1138.                     [Edited by Gregory Gulik]
  1139.  
  1140.                          April 25, 1988
  1141.  
  1142.           NB:  the   procedures   described   here
  1143.           require  substantial  knowledge  of  UNIX and
  1144.           entail a significant risk of causing loss  of
  1145.           data.  The obvious disclaimers apply here, so
  1146.           use at your own risk.  Please be careful.
  1147.  
  1148. Introduction
  1149.  
  1150.      This document is an introduction to operating your 3B from a
  1151. standalone /unix.  Even with inoperable hard drives, it is possible to
  1152. insert the boot floppy (Essential Utilities Disk 1), say some magic
  1153. words, and receive a # prompt.  At this point you can do major surgery
  1154. on the failing machine, often recovering a drive previously thought to
  1155. be lost.
  1156.  
  1157.      Our style is informal and we'll use lots of examples to illustrate
  1158. the points at hand.  We have been using standalone shells for quite
  1159. some time and have learned a great deal; we hope to pass this
  1160. information on to you.  Please read this document carefully before
  1161. trying the methods described here, and if possible have a wizard around
  1162. when giving it a go.  This can be dangerous business: as has been said
  1163. before, it is a time where experience and informed courage count for
  1164. much.
  1165.  
  1166. Conventions
  1167.  
  1168.      Throughout this document, sample usage sessions will be shown
  1169. indented, with user input in bold.  To make it easier to distinguish
  1170. between a multiuser UNIX shell and a standalone one, we will show
  1171. multiuser UNIX's root prompt as ## and the standalone prompt as #.
  1172.  
  1173.  
  1174. >>> Back up your boot disks b->
  1175.  
  1176.      This cannot be emphasized enough.  Your boot floppies are the key
  1177. to your machine, and without them the machine is down.
  1178.  
  1179. Why do you want a standalone /unix?
  1180.  
  1181.      The most compelling reason for a standalone shell is when the
  1182. primary drive has gone down and must be recovered.  While working from
  1183. a standalone /unix is slow and tedious, it can often save an entire
  1184. hard disk with minimal data loss.
  1185.  
  1186.      We have also used this standalone shell to repair a corrupt
  1187. /etc/inittab, to fix /etc/passwd, to restore a /bin/login that had been
  1188. removed, and to install new bootstraps on the hard drive.  With a
  1189. standalone boot disk in hand, a host of possibilities presents itself.
  1190.  
  1191.  
  1192. What is on your boot disk?
  1193.  
  1194.      Before booting this floppy, take some time to explore its
  1195. contents, as the disk has a filesystem on it that can be mounted and
  1196. perused.  To do this, insert a COPY of the Essential Utilities Floppy 1
  1197. (from now on, "the boot floppy") into the drive with a write-protect
  1198. tab.  Now,
  1199.  
  1200.           ## mount /dev/dsk/c0d0s5 /install -r
  1201.  
  1202.      Because boot floppies vary from release to release, it would be
  1203. most helpful to simply get a listing of the contents of your particular
  1204. boot floppy.
  1205.  
  1206.      Once finished, the floppy must be unmounted:
  1207.  
  1208.           ## cd /
  1209.           ## umount /dev/dsk/c0d0s5
  1210.  
  1211. "Open Sesame"
  1212.  
  1213.      To give standalone a try, first shut the machine down to firmware
  1214. mode.  Assuming the machine is now in firmware mode, put a copy of the
  1215. boot disk into the drive.  Note that some versions of the operating
  1216. system (Sys V Release 2, at least) require that the boot floppy be
  1217. write-enabled (i.e., no write-protect tab); it is this requirement that
  1218. mandates multiple backups of the boot floppy.  UNIX will be updating
  1219. the disk while it runs -- the superblock, access times, etc. -- and if
  1220. the machine crashes at the wrong time it simply will not boot again
  1221. without an fsck.  Be careful.
  1222.  
  1223.      Type in your firmware password and boot /unix from the floppy
  1224. drive (Option 0, named `FD5') instead of the hard drive (Option 1,
  1225. named `HD30' or `HD72').  It can take several minutes for UNIX to boot,
  1226. but when it does, the familiar menu will be displayed:
  1227.  
  1228.                1) Full Restore
  1229.                2) Partial Restore
  1230.                3) Dual-Disk Upgrade
  1231.                4) Release Upgrade
  1232.                Selection? [1, 2, 3, 4, quit, help]
  1233.  
  1234.      At this point, type the phrase
  1235.  
  1236.                            magic mode
  1237.  
  1238.      The system recognizes this special option and responds:
  1239.  
  1240.           Poof!
  1241.  
  1242.           Selection? [1, 2, 3, 4, quit, help, shell, copy]
  1243.  
  1244.      Notice the new options?  Now type shell, then RETURN, and you will
  1245. be greeted with the familiar # prompt.  You are now running a
  1246. standalone shell on the floppy.
  1247.  
  1248.      A few reminders here: a floppy filesystem is not able to hold much
  1249. data, and many common utilities are unavailable.  When dealing with the
  1250. standalone shell, one must learn alternatives to these utilities.  For
  1251. example, echo * can replace ls(1), and cat > file can serve as a poor
  1252. replacement to ed(1).  One must become remarkably resourceful when
  1253. working in an environment as restricted as this.  We will see later how
  1254. we can enhance this confined environment with additional tools.
  1255.  
  1256. Standalone devices
  1257.  
  1258.      The floppy's /dev directory contains a host of entries, some of
  1259. them referring to partitions on the hard drive.  While a particular
  1260. partition may have several names, we generally use the following
  1261. devices to refer to the hard disk:
  1262.  
  1263.           Partition        What it is (on the hard disk)
  1264.           -----------      -----------------------------
  1265.           /dev/idsk00      / filesystem
  1266.           /dev/idsk01      swap area
  1267.           /dev/idsk02      /usr filesystem
  1268.           /dev/idsk06      the entire disk
  1269.           /dev/idsk07      boot partition
  1270.           /dev/idsk08      optional filesystem (/u or /usr2)
  1271.  
  1272. Mounting the hard drive
  1273.  
  1274.      To gain access to the primary hard drive, partitions of interest
  1275. are mounted onto directories on the floppy.  The device names are
  1276. selected from the table in the previous section.
  1277.  
  1278.      Before mounting a partition, we recommend running the filesystem
  1279. check fsck(1m) first.  The mount command will fail if the the
  1280. superblock is not in order -- this is often the case after a crash.  In
  1281. addition, it gives a convenient verification of the device status and
  1282. the the filesystem's name and volume.
  1283.  
  1284.           # /etc/fsck /dev/idsk00
  1285.  
  1286.      While some errors are to be expected while checking the root
  1287. partition, a total failure is a very serious error.  Our experience
  1288. defines "total failure" as an indication by fsck that it cannot find
  1289. any possible traces of a filesystem.  In particular, "CAN NOT READ: BLK
  1290. 1" is one of the more ominous messages we have seen.
  1291.  
  1292.      Once fsck grants the filesystem a clean bill of health, it is
  1293. ready to be mounted.  Rather than take up space for a handful of common
  1294. commands, AT&T has rolled several of them into one:  fsys.  It is
  1295. undocumented and appears to only be used on the boot floppy.  Some
  1296. versions of the boot disk do contain the mount and umount programs and
  1297. those can be used instead of fsys.
  1298.  
  1299.      Fsys takes a handful of options, not all of which are interesting
  1300. to us in standalone mode.  Used in the install scripts for a handful of
  1301. filesystem-related duties, we will use it simply as a replacement for
  1302. mount(1m) and umount(1m).  To mount the hard disk's root filesystem
  1303. onto the floppy's /install directory, do:
  1304.  
  1305.           # fsys -m /install /dev/idsk00
  1306.  
  1307.      Fsys will complain on an error, and this brings us to a serious
  1308. bug in this program: if either the mount directory or the partition's
  1309. device name are invalid for any reason, the error message will always
  1310. point to the partition device name.  This can be, to put it lightly,
  1311. "misleading".
  1312.  
  1313.      With the hard drive's root filesystem mounted on /install, it is
  1314. now fully part of the standard directory tree.  While the floppy has no
  1315. editor or many of the helpful tools, the root partition does, and these
  1316. can be exploited.  When beginning an extended standalone session on the
  1317. primary drive, we have found it helpful to extend the shell's search
  1318. path:
  1319.  
  1320.           # PATH=/install/bin:/install/etc:$PATH ; export PATH
  1321.  
  1322.      Now the familiar ls, ed, (but not vi) and many other commands are
  1323. available.  Since they will be loaded from the hard drive, execution is
  1324. much faster.
  1325.  
  1326.      As an example, assume that the root password has been forgotten
  1327. and the machine is basically closed.  The solution suggested by AT&T's
  1328. documentation (in the System Administration Utilities Guide) is to do a
  1329. partial restore.  The difficulty with this approach is that many
  1330. important system files -- /etc/passwd, /etc/inittab, /etc/gettydefs,
  1331. and others -- are overwritten in the process.  Even with a full backup,
  1332. this can be an unpleasant undertaking.
  1333.  
  1334.      An alternate approach will use the standalone shell.  The general
  1335. strategy is to mount the hard drive, edit the password file, and boot
  1336. multiuser UNIX.  The full procedure is:
  1337.  
  1338.           (boot standalone /unix)
  1339.           # fsck /dev/idsk00
  1340.           # fsys -m /install /dev/idsk00
  1341.           # /install/bin/ed /install/etc/passwd
  1342.           (edit the file in the standard way)
  1343.           w
  1344.           q
  1345.           # fsys -u /dev/idsk00
  1346.  
  1347.      At this point, the root drive is now unmounted and the system may
  1348. be rebooted.  Normally you can just type exit at the shell prompt and
  1349. you will be returned to the monitor and asked what program to boot.  If
  1350. that doesn't work on your version, try:
  1351.  
  1352.           # sync
  1353.           # sync
  1354.           # /etc/uadmin 2 2
  1355.  
  1356.      Uadmin(1m) is documented in the manual (you must also refer to the
  1357. uadmin(2) manual page) -- the above does a normal return to the monitor
  1358. (i.e., firmware).  WARNING: uadmin(1m) is available from full UNIX as
  1359. well but is very dangerous.  Use it with extreme caution and only if
  1360. you really know what uadmin does.
  1361.  
  1362. Making a standalone boot disk
  1363.  
  1364.           ================== WARNING ==================
  1365.           Only do this on backup copies of  the  disks,
  1366.           NEVER to the main Essential Utilities Disk.
  1367.           ================== WARNING ==================
  1368.  
  1369.      The Essential Utilities Disk 1 contains many files needed by the
  1370. automatic restore/upgrade procedures, but for standalone work, many are
  1371. not needed.  After working with these disk for some time, we were able
  1372. to narrow down what is helpful to have on the disk and what is not.
  1373. The following procedure (run from multiuser mode, signified by the ##
  1374. prompt) will convert an Essential Utilities disk to a standalone boot
  1375. disk.
  1376.  
  1377.           (from hard disk UNIX)
  1378.           ## fsck /dev/dsk/c0d0s5
  1379.           ## mount /dev/dsk/c0d0s5 /install
  1380.           ## cd /install/inst/bin
  1381.           ## mv fsys pdinfo swap ttyset ../../bin
  1382.           ## cd /install
  1383.           ## /bin/rm -rf inst
  1384.           ## cp /bin/ed /install/bin
  1385.           ## cp /etc/fsdb /install/etc
  1386.           ## cat > /install/inittab
  1387.           is:s:initdefault:
  1388.           sh:s:respawn:/bin/sh < /dev/console > /dev/console 2>&1
  1389.           ^D
  1390.           ## cd /
  1391.           ## umount /dev/dsk/c0d0s5
  1392.  
  1393.      While there may be other files on this floppy that are not needed,
  1394. we have operated on the principle of least customization.  It has been
  1395. our experience that keeping the procedure simple allows it to be done
  1396. on-the-fly (say, at a customer site) and minimizes the exploration
  1397. required when a new operating system disk is released.
  1398.  
  1399.      In addition, it is not wise to pack the disk too tightly.  The
  1400. editor requires adequate space under /tmp, so an almost-full disk
  1401. precludes editing all but the smallest files; this applies whether the
  1402. file being edited resides on the hard drive or the floppy.
  1403.  
  1404.      Once this is done, the new disk will come up in standalone mode
  1405. without the need for magic mode.  In addition ed(1) and fsdb(1m) are
  1406. available.  The other tools mentioned (pdinfo, swap, ttyset) are
  1407. helpful but not required by the basic procedures.
  1408.  
  1409.      It has been our experience that any version (SVR2, SVR3) of boot
  1410. disk can be used with any version of hard disk UNIX without difficulty
  1411. for doing simple operations such a performing filesystem checks or
  1412. editing /etc/passwd.  For more complex operations, such as
  1413. repartitioning the hard drive or restoring the bootstraps, higher
  1414. version compatibility is required.
  1415.  
  1416. Security Considerations
  1417.  
  1418.      It should be apparent that knowledge of these standalone methods
  1419. is tremendously powerful.  In addition to being able to rescue a
  1420. floundering machine, an unrestricted path to root has been provided as
  1421. well.  While all the standard rules about physical security of the
  1422. computer apply here, an additional step may be taken to thwart a
  1423. would-be interloper.
  1424.  
  1425.      The responsible system administrator of a machine in a hostile
  1426. environment will generally change the computer's firmware password.
  1427. This magic word is required before the monitor on the 3B2 motherboard
  1428. will boot from a floppy, and lack of this password prevents a malicious
  1429. user from simply pulling the power plug to enter firmware mode.
  1430.  
  1431.      In addition to changing the firmware password, the floppy key
  1432. floppy should itself be secured.  When the computer is restarted with
  1433. this disk in the drive, it will clear the non-volatile RAM (NVRAM) and
  1434. restore the default parameters.  Because the firmware password is
  1435. included in these "default parameters", this disk should be kept out of
  1436. non-trusted hands.
  1437.  
  1438. Conclusion
  1439.  
  1440.      We solicit bug reports, comments, and suggestions on this
  1441. document.  Please direct them to:
  1442.  
  1443.     Stephen J. Friedl
  1444.     Software Consultant
  1445.     1891 Running Branch Way
  1446.     Tustin, CA 92680
  1447.     +1 714 544-6561 voice
  1448.     +1 714 838-0099 fax
  1449.  
  1450.     Internet:    friedl@mtndew.Tustin.CA.US
  1451.     Usenet:        {backbones}!uunet!mtndew!friedl
  1452.  
  1453. ------------------------------------------------------------------------------
  1454. Subject: 10 What is/was the 3B Journal?
  1455. ------------------------------------------------------------------------------
  1456.  
  1457.     The _3B Journal_ was put out sporadically by Owens-Laing
  1458.     Publications for several years in the late 1980s, and I used to be
  1459.     the technical editor.  The magazine dealt with the 3B1 and 3B2
  1460.     platforms, and the content varied from very markety-oriented to
  1461.     quite technical (the latter usually written by me).
  1462.  
  1463.     The publisher never seemed to get a handle on the business end of
  1464.     running a magazine, and I've heard nothing past the fourth quarter,
  1465.     1989 issue.  The current phones are disconnected, and I have NO
  1466.     information on subscriptions or anything like that.
  1467.  
  1468.          -- Stephen Friedl  friedl@mtndew.Tustin.CA.US   3/12/1992
  1469.  
  1470. ------------------------------------------------------------------------------
  1471. Subject: 11 What are the various models of 3B2s and their differences?
  1472. ------------------------------------------------------------------------------
  1473.  
  1474. [I'm putting this together mostly from memory and from discussions
  1475.  with other people.  Please feel free to make corrections.]
  1476.  
  1477. Some corrections/additions provided by Andrew D. Hay <adh@petrel.att.com>,
  1478. Paul S. Sawyer <paul@unhtel.unh.edu>, Mike Crom <crom@vogon.att.com>,
  1479. David Beneman <..!uunet!tacoma!dcb>, Paul Rak <pjr@emo.com>,
  1480. Kevin Darcy <kevin@cfctech.cfc.com>
  1481.  
  1482. The 3B2 family of consists of the following models:
  1483.  
  1484. 3B2/300
  1485.  
  1486.     Processor:
  1487.         WE32000, 8 MHz
  1488.         almost 1 MIPS
  1489.  
  1490.     Memory:        
  1491.         Supports a maximum of 4 MB of RAM using two half height
  1492.         2 MB memory cards.
  1493.  
  1494.     Slots:
  1495.         4 standard slots.
  1496.  
  1497.     Features:
  1498.         MFM disk controller on motherboard
  1499.         1 internal full-height drive bay
  1500.         1 720 K floppy drive
  1501.  
  1502. 3B2/310
  1503.  
  1504.     Processor:
  1505.         WE32100, 10MHz (supports optional MAU)
  1506.         1.1 MIPS
  1507.  
  1508.     Memory:
  1509.         Supports a maximum of 4 MB of RAM using two half height
  1510.         2 MB memory cards.
  1511.  
  1512.     Slots:
  1513.         4 standard slots.
  1514.  
  1515.     Features:
  1516.         MFM disk controller on motherboard
  1517.         1 internal full-height drive bay
  1518.         1 720 K floppy drive
  1519.  
  1520. 3B2/400
  1521.  
  1522.     Processor:
  1523.         WE32100, 10MHz (supports optional MAU)
  1524.         1.1 MIPS
  1525.  
  1526.     Memory:
  1527.         Supports a maximum of 4 MB of RAM using either two half
  1528.         height or full height 2 MB memory cards.
  1529.  
  1530.     Slots:
  1531.         12 standard slots.
  1532.  
  1533.     Features:
  1534.         MFM disk controller on motherboard
  1535.         2 internal full-height drive bays
  1536.         1 720 K floppy drive
  1537.         1 23 MB cartridge tape drive
  1538.  
  1539. 3B2/500
  1540.  
  1541.     Processor:
  1542.         WE32100, 18MHz
  1543.         2.1 MIPS
  1544.         2.6 MIPS w/VCache
  1545.         4.0 MIPS w/PE
  1546.  
  1547.     Memory:
  1548.         2 - 4MB cards max
  1549.  
  1550.     Slots:
  1551.         7 I/O + 4 system (MEM0, MEM1, Vcache, BUB0)
  1552.         There is also BUB1, but it is listed as unusable
  1553.         without the 22MHz upgrade.
  1554.  
  1555.     Features:
  1556.         SCSI disks
  1557.         Up to 1 additional PE
  1558.  
  1559. 3B2/522
  1560.  
  1561.     Processor:
  1562.         WE32200, 22MHz
  1563.         5.0 MIPS
  1564.  
  1565.     Memory:
  1566.         2 - 16MB cards max
  1567.  
  1568.     Slots:
  1569.         7 I/O + 4 system (MEM0, MEM1, Vcache, BUB0, BUB1)
  1570.  
  1571.     Features:
  1572.         SCSI disks
  1573.         Field upgraded 3B2/500 to same processor as 3B2/700
  1574.         Up to 1 additional PE
  1575.  
  1576. 3B2/600 (aka 3B2/1000-60)
  1577.  
  1578.     Processor:
  1579.         WE32100, 18MHz
  1580.         2.6 MIPS
  1581.         4.0 MIPS w/PE
  1582.  
  1583.     Memory:
  1584.         4 - 4MB cards max
  1585.  
  1586.     Slots:
  1587.         12 I/O + 12 system
  1588.  
  1589.     Features:
  1590.         SCSI disks
  1591.         120MB SCSI tape
  1592.         Up to 3 additional PEs
  1593.  
  1594. 3B2/700, 3B2/622 (aka 3B2/1000-70)
  1595.  
  1596.     Processor:
  1597.         WE32200, 22MHz
  1598.         4KB PCache
  1599.         5.0 MIPS
  1600.         7.5 MIPS w/1 PE
  1601.         8.5 MIPS w/2 PEs
  1602.         9.0 MIPS w/3 PEs
  1603.  
  1604.     Memory:
  1605.         4 - 16MB cards max
  1606.  
  1607.     Slots:
  1608.         12 I/O + 12 system
  1609.  
  1610.     Features:
  1611.         SCSI disks
  1612.         120MB SCSI tape
  1613.         Up to 3 PEs
  1614.         The 3B2/622 is a field upgrade for the 3B2/600
  1615.  
  1616. 3B2/1000, 3B2/600G (aka 3B2/1000-80)
  1617.  
  1618.     Processor:
  1619.         WE32200, 24MHz
  1620.         9 MIPS
  1621.         16 MIPS w/3 MPEs
  1622.  
  1623.     Memory:
  1624.         4 - 16MB cards max
  1625.  
  1626.     Slots:
  1627.         12 I/O + 12 system
  1628.  
  1629.     Features:
  1630.         SCSI disks
  1631.         Up to 3 MPEs
  1632.  
  1633. 3B2/1050 R3
  1634.  
  1635.     Processor:
  1636.         MIPS R3000A, 33MHz
  1637.  
  1638.     Memory:
  1639.         16MB - 32MB
  1640.  
  1641.     Slots:
  1642.         N/A
  1643.  
  1644.     Features:
  1645.         N/A
  1646.  
  1647. 3B2/1100 R3
  1648.  
  1649.     Processor:
  1650.         MIPS R3000A, 33MHz
  1651.  
  1652.     Memory:
  1653.         32MB - 64MB
  1654.  
  1655.     Slots:
  1656.         N/A
  1657.  
  1658.     Features:
  1659.         N/A
  1660.  
  1661. 3B15
  1662.  
  1663.     Processor:
  1664.         WE32100 (standard MAU) (?)
  1665.         2 MIPS (?)
  1666.  
  1667.     Memory:
  1668.         16 MB (?)
  1669.  
  1670.     Slots:
  1671.  
  1672.     Features:
  1673.         Standard 9-Track tape drive
  1674.         Uses 8 inch SCSI drives
  1675.  
  1676.         NOTE: Not all 3B15s have SCSI.  Some models were
  1677.         converted from 3B5s and have 8 inch FSD drives (maximum
  1678.         8, 160 MB or 340 MB).  Then there are the Lark II
  1679.         drives.  The non-SCSI tape bus can take 1-4 drives.
  1680.         The 3B5 becomes a 3B15 by a change of 2 (??) boards,
  1681.         and most importantly, a new name sticker!
  1682.  
  1683. 3B4000
  1684.  
  1685.     Processor:
  1686.         WE32100 from 3B15 as control processor
  1687.         1 to 6 3B2/600's as attached processors
  1688.  
  1689.     Memory:
  1690.  
  1691.     Slots:
  1692.  
  1693.     Features:
  1694.         Supports tons of SCSI disk
  1695.  
  1696.  
  1697. 3B2 PERIPHERALS
  1698.  
  1699. Name    Device Code     Description
  1700. ----    ------    -----------
  1701. SBD    0x0001  System motherboard
  1702. NI    0x0002  10base5 ethernet card
  1703.         SW Name        Function
  1704.         -------        --------
  1705.           NI        TCP/IP
  1706.           NAU        StarLAN 10
  1707. PORTS    0x0003    Ports card.  4 serial, 1 parallel. (includes HPP)
  1708. CTC    0x0005    Cartridge tape controller.  23 MB
  1709. NAU    0x0006    Network access unit.  1 MB STARLAN
  1710. SPSC    0x0045  X.25 adapter
  1711. SCSI    0x0100    SCSI host adapter
  1712. AIC    0x0101    Alarm interface circuit
  1713. EPORTS    0x0102    Extended ports.  8 serial ports
  1714. ISC    0x0201    Intelligent serial controller
  1715.         SW Name        Function
  1716.         -------        --------
  1717.         SNABSC        3270 Emulation,RJE (old) (Bisync/SNA)
  1718.         SI        3270 Emulation,RJE,LU6.2 (Bisync/SNA)
  1719.         X25        X.25 Communication
  1720. XDC    0x0204    External disk controller for 2 more MFM drives
  1721. FXM    0x0215    Fiber eXpansion Module
  1722. DKIT    0x0308    "Datakit" fiber-optic card (connect to datakit/ISN switch)
  1723. MAU    0xFD00    Math accelerator unit
  1724. VCACHE    0xFE00    Extended memory cache (3B2/600 and higher, exc. 3B2/1000-80)
  1725. MPB    0xFF00    Multiprocessor board (3B2/600 and higher, exc. 3B2/1000-80)
  1726. MPB    0xFF01    Multiprocessor board (3B2/1000-80 only)
  1727.  
  1728. ------------------------------------------------------------------------------
  1729. Subject: 12 How do I build GCC on the 3B2?
  1730. ------------------------------------------------------------------------------
  1731.  
  1732. John L. Wehle ported GCC to the WE32000 series processor, and it
  1733. first appeared in release 2.2 of GCC.
  1734.  
  1735. To build the GCC 2.3.3 release on the 3B2, download the latest GCC
  1736. distribution and allocate at least 40 MB of disk space to do the
  1737. build.  Follow the directions in the INSTALL file.  The following
  1738. are some notes that will make the install go smoother.
  1739.  
  1740. If you are already using GCC 2.2.2, use that and follow the directions
  1741. as listed in the INSTALL file.  It's by far the easiest way to go.
  1742. Here is a summary:
  1743.  
  1744.     $ configure --target=3b2
  1745.     $ make LANGUAGES=c CC=/usr/local/bin/gcc
  1746.     $ make stage1 LANGUAGES=c CC=/usr/local/bin/gcc
  1747.     $ make LANGUAGES=c CC=stage1/xgcc CFLAGS="-Bstage1/ -g"
  1748.     [continue with the common directions below]
  1749.  
  1750. If you don't have a previous version of GCC available and will be
  1751. using the AT&T supplied compiler, there some special thing you're
  1752. going to have to do.  First of all, older versions of /lib/cpp are
  1753. not capable of processing one of the source files.  I recommend
  1754. building the distribution until the GNU cpp is done.  Then,
  1755. temporarily replace your /lib/cpp with the GNU version, and add
  1756. the following flag to CFLAGS in the Makefile:
  1757.  
  1758. CFLAGS = -U__STDC__
  1759.  
  1760. When stage1 is complete, you could remove the -U__STDC__ flag
  1761. and restore your original cpp.
  1762.  
  1763. Basically, the steps are as follows:
  1764.  
  1765.     $ configure --target=3b2
  1766.     $ make LANGUAGES=c
  1767.     [Building cccp.c will probably fail.  Fix the cpp
  1768.      as described above]
  1769.     $ make LANGUAGES=c
  1770.     $ make stage1 LANGUAGES=c
  1771.     $ make LANGUAGES=c CC=stage1/xgcc CFLAGS="-Bstage1/ -g"
  1772.  
  1773. [It is important to note that due to a bug in the AT&T compiler,
  1774.  the optimizer doesn't get compiled correctly at this point.]
  1775.  
  1776. The following are the common directions for old GCC users and
  1777. AT&T compiler users.
  1778.  
  1779.     $ make stage2
  1780.     $ make CC=stage2/xgcc CFLAGS="-Bstage2/ -g -O"
  1781.  
  1782. [Some people still have problems with the optimizer at this point.
  1783.  If you do, just do not use the -O flag when compiling GCC.  The
  1784.  symptom you will experience that tells you the -O flag should be
  1785.  removed is the compilation of cccp.c will take a VERY long time.
  1786.  Kill the compile and restart without the -O.]
  1787.  
  1788.     $ make stage3
  1789.     $ make CC=stage3/gcc CFLAGS="-Bstage3/ -g -O"
  1790.  
  1791. To optionally verify everything built correctly:
  1792.  
  1793.     $ for file in *.o; do
  1794.     > tail +10c $file > foo1
  1795.     > tail +10c stage3/$file > foo2
  1796.     > cmp foo1 foo2 || echo $file
  1797.     > done
  1798.  
  1799. Then, to install the distribution:
  1800.  
  1801.     $ make CC=stage3/gcc CFLAGS="-Bstage3/ -g -O" install
  1802.  
  1803. Good luck!
  1804.  
  1805. [These notes are a combination of my own experiences with building the
  1806.  GCC compiler on a 3B2/400 and discussions with John Wehle, the author
  1807.  of the port.]
  1808.  
  1809. NOTES:
  1810.  
  1811. The GCC binaries available on several anonymous FTP sites will not
  1812. work with certain version of the standard C compiler.  It appears
  1813. to be some sort of linker problem.  I may have a fix for it.
  1814. Contact me via E-mail if you fall into this category.
  1815.  
  1816. Speaking of linker problems, GCC 2.2.2 will not work all that well with
  1817. the standard C shared library -lc_s.  The workaround for this is
  1818. to compile your program with GCC, but the link will fail.  When it
  1819. does, use something like the following to do the link stage:
  1820.  
  1821. $ cc -O -L/usr/local/lib/gcc-lib/we32k-att-sysv/2.2.2 program.o \
  1822.     -o program -lgcc -lc_s
  1823.  
  1824. This way, you will not only get fast binaries, but small ones as
  1825. well.  This problem has been corrected in 2.3.2 (Thanks Stallman!)
  1826.  
  1827. You may need to raise your ULIMIT to compile the g++ compiler as
  1828. the executable is larger than 1 MB.
  1829.  
  1830. ------------------------------------------------------------------------------
  1831. Subject: 13 What is the NVRAM SANITY FAILURE?
  1832. ------------------------------------------------------------------------------
  1833.  
  1834. The full error message resembles the following:
  1835.  
  1836. FW ERROR 1-01: NVRAM SANITY FAILURE
  1837.                DEFAULT VALUES ASSUMED
  1838.                IF REPEATED, CHECK THE BATTERY
  1839.  
  1840. The 3B2 stores information such as the time of day clock and machine
  1841. name in non-volatile memory.  The memory is backed up by a Lithium
  1842. battery, that does die after a few years.  The battery is normally
  1843. located in the right side of the case, near the cards, and connected to
  1844. the motherboard under the card in slot 2.  Replacing the battery almost
  1845. always requires the complete removal of the card cage.  Replacement
  1846. batteries can be found at some electronics stores.  I won't list exact
  1847. specifications because I have seen 3 different types of batteries so
  1848. far, and there may be more.  Your best bet is to just buy another
  1849. batter with the exact same voltage and modify the connector to fit.
  1850.  
  1851. ------------------------------------------------------------------------------
  1852. Subject: 14 Is there an implementation of SLIP for the 3B2?
  1853. ------------------------------------------------------------------------------
  1854.  
  1855. Rumor has it that there was one written by Wollongong, but AT&T
  1856. purchased exclusive marketing rights to WIN TCP/IP for the 3B2, but
  1857. chose NOT to include SLIP.  There is the NOS (KA9Q) package that
  1858. supposedly provides SLIP capabilities, but I have not tried it and
  1859. don't know if it'll run on a 3B2.
  1860.  
  1861. ------------------------------------------------------------------------------
  1862. Subject: 15 What are the known bugs in the Wollongong WIN TCP software?
  1863. ------------------------------------------------------------------------------
  1864.  
  1865. From: Steven M. Kilby <skilby@ucqais.cba.uc.edu>
  1866.  
  1867. rexecd:
  1868.     The rexecd released with WIN TCP for the 3B2 has the following bug.
  1869. This bug has been verified on a 400 with TCP 3.0.1 and 3.2.  When executing
  1870. a command using the rexecd daemon, the gid of the user is set and left at
  1871. root.  This is very apparent when executing a command that creates a shell,
  1872. such as XTerm.  The only available solutions at present are to rewrite the
  1873. daemon yourself, or.... not run it.  The problem has been reported to CERT.
  1874.  
  1875. ------------------------------------------------------------------------------
  1876. Subject: 16 Is there an implementation of NFS for the 3B2?
  1877. ------------------------------------------------------------------------------
  1878.  
  1879. The person to contact about 3B2 software is Kristine Schneider
  1880. [708-979-1017].  I called her and obtained the following information
  1881. about NFS:
  1882.  
  1883. Latest Versions:        1.3
  1884. Requires:               System V Rel 3.2.1 or 3.2.3, WIN/TCP 3.2 or higher
  1885. Product Code:           C274-0NB3-000
  1886. List Price:             $1295.00
  1887.  
  1888. This package is for the WE versions of the 3B2.  NFS comes bundled with
  1889. SVR4 for RISC-based 3B2's.  TCP/IP on the other hand, does not and has
  1890. to be purchased separately.
  1891. -- 
  1892. Gregory Gulik - greg@gagme.wwa.com
  1893. WorldWide Access (SM) - Chicagoland Internet Services
  1894. +1 312 282 8605 or send mail to info@wwa.com
  1895.